
FROM centos:latest

LABEL maintainer="antball"

ARG JDK_TAR=jdk-8u201-linux-x64.tar.gz

ADD $JDK_TAR /usr/local/


RUN yum install -y wget \
&& yum install -y vim  \
&& yum install -y tzdata \
&& yum install iputils \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone \
&& yum -y install kde-l10n-Chinese glibc-common \
&& echo "export LC_ALL=zh_CN.UTF-8"  >>  /etc/profile \
&& localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 \
&& source /etc/profile

ENV JAVA_HOME=/usr/local/jdk1.8.0_201 
ENV JRE_HOME ${JAVA_HOME}/jre
ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
ENV PATH ${JAVA_HOME}/bin:$PATH
ENV LANG="zh_CN.UTF-8"
